<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<ul class="menu" id="sddm">
    <li><a href="/">Home</a></li>
    <c:choose>
        <c:when test="${user == null}">
            <li><a href="/account/login">LogIn</a></li>
            <li><a href="/account/signUp">SignUp</a></li>
        </c:when>
        <c:otherwise>
            <c:if test="${isAdmin}">
            <li><a href="/admin/addProduct">Add Product</a></li>
            <li><a href="/admin/importProducts">Import Products</a></li>

            </c:if>
            <li>[${user}] <a href="/account/logout">LogOut</a></li>
        </c:otherwise>
    </c:choose>
</ul>